package cn.rkylin.oms.warehouse.stock.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

import cn.rkylin.oms.common.base.BaseEntity;

public class Stock extends BaseEntity {

    /**
     * 序列化ID.
     */
    private static final long serialVersionUID = -5559730517387094034L;

    /**
     * 企业Id
     */
    private String entId;
    /**
     * 企业名称
     */
    private String entName;
    /**
     * SkuId
     */
    private String skuId;
    /**
     * Sku编码
     */
    private String skuCode;

    /**
     * Sku名称
     */
    private String skuName;
    /**
     * 商品Id
     */
    private String goodsId;
    /**
     * 商品编码
     */
    private String goodsCode;
    /**
     * 商品名称
     */
    private String goodsName;
    /**
     * 仓库Id
     */
    private String storId;
    /**
     * 仓库编码
     */
    private String storCode;
    /**
     * 仓库名称
     */
    private String storName;
    /**
     * 库存数（本地计算）
     */
    private Integer stockQty;
    /**
     * 残次品数（本地计算）
     */
    private Integer junkQty;
    /**
     * 在途数
     */
    private Integer onwayQty;
    /**
     * 已分派数
     */
    private Integer allotQty;
    /**
     * 残次品已分派数
     */
    private Integer junkAllotQty;
    /**
     * 未分派数
     */
    private Integer unallotQty;
    /**
     * 预留数
     */
    private Integer reserveQty;
    /**
     * 冻结数
     */
    private Integer freezeQty;
    /**
     * 未付款数
     */
    private Integer unpayQty;
    /**
     * 逻辑出库数
     */
    private Integer logicStockoutQty;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    /**
     * 可销售数（第三方）
     */
    private Integer sellCount;
    /**
     * 总库存数（第三方）
     */
    private Integer totalCount;
    /**
     * 废品数（第三方）
     */
    private Integer junkCount;

    public String getEntId() {
        return entId;
    }

    public void setEntId(String entId) {
        this.entId = entId == null ? null : entId.trim();
    }

    public String getSkuId() {
        return skuId;
    }

    public void setSkuId(String skuId) {
        this.skuId = skuId == null ? null : skuId.trim();
    }

    public String getStorId() {
        return storId;
    }

    public void setStorId(String storId) {
        this.storId = storId == null ? null : storId.trim();
    }

    public String getEntName() {
        return entName;
    }

    public void setEntName(String entName) {
        this.entName = entName == null ? null : entName.trim();
    }

    public String getSkuCode() {
        return skuCode;
    }

    public void setSkuCode(String skuCode) {
        this.skuCode = skuCode == null ? null : skuCode.trim();
    }

    public String getSkuName() {
        return skuName;
    }

    public void setSkuName(String skuName) {
        this.skuName = skuName == null ? null : skuName.trim();
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId == null ? null : goodsId.trim();
    }

    public String getGoodsCode() {
        return goodsCode;
    }

    public void setGoodsCode(String goodsCode) {
        this.goodsCode = goodsCode == null ? null : goodsCode.trim();
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName == null ? null : goodsName.trim();
    }

    public String getStorCode() {
        return storCode;
    }

    public void setStorCode(String storCode) {
        this.storCode = storCode == null ? null : storCode.trim();
    }

    public String getStorName() {
        return storName;
    }

    public void setStorName(String storName) {
        this.storName = storName == null ? null : storName.trim();
    }

    public Integer getStockQty() {
        return stockQty;
    }

    public void setStockQty(Integer stockQty) {
        this.stockQty = stockQty;
    }

    public Integer getSellCount() {
        return sellCount;
    }

    public void setSellCount(Integer sellCount) {
        this.sellCount = sellCount;
    }

    public Integer getOnwayQty() {
        return onwayQty;
    }

    public void setOnwayQty(Integer onwayQty) {
        this.onwayQty = onwayQty;
    }

    public Integer getAllotQty() {
        return allotQty;
    }

    public void setAllotQty(Integer allotQty) {
        this.allotQty = allotQty;
    }

    public Integer getUnallotQty() {
        return unallotQty;
    }

    public void setUnallotQty(Integer unallotQty) {
        this.unallotQty = unallotQty;
    }

    public Integer getReserveQty() {
        return reserveQty;
    }

    public void setReserveQty(Integer reserveQty) {
        this.reserveQty = reserveQty;
    }

    public Integer getFreezeQty() {
        return freezeQty;
    }

    public void setFreezeQty(Integer freezeQty) {
        this.freezeQty = freezeQty;
    }

    public Integer getUnpayQty() {
        return unpayQty;
    }

    public void setUnpayQty(Integer unpayQty) {
        this.unpayQty = unpayQty;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getLogicStockoutQty() {
        return logicStockoutQty;
    }

    public void setLogicStockoutQty(Integer logicStockoutQty) {
        this.logicStockoutQty = logicStockoutQty;
    }

    public Integer getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(Integer totalCount) {
        this.totalCount = totalCount;
    }

    public Integer getJunkCount() {
        return junkCount;
    }

    public void setJunkCount(Integer junkCount) {
        this.junkCount = junkCount;
    }

    public Integer getJunkQty() {
        return junkQty;
    }

    public void setJunkQty(Integer junkQty) {
        this.junkQty = junkQty;
    }

    public Integer getJunkAllotQty() {
        return junkAllotQty;
    }

    public void setJunkAllotQty(Integer junkAllotQty) {
        this.junkAllotQty = junkAllotQty;
    }
}